/**
 * Copyright(c) 2013 Jade Techonologies Co., Ltd.
 *
 * History:
 *   13-7-11 下午2:56 Created by sky
 */
package com.jade.modules.message.sms.bestone;

import com.jade.modules.message.sms.comm.SmsRequest;
import com.jade.modules.message.sms.comm.SmsResponse;

/**
 * 数据包。
 *
 * @author sky
 * @version 1.0 13-7-11 下午2:56
 */
public class Submit
        extends SmsRequest
{
    private String from;
    private String to;
    private String content;
    private String serviceCode;

    public Submit()
    {
        super(BestoneConstants.CMD_SUBMIT);
    }

    public Submit(int sequenceId)
    {
        super(BestoneConstants.CMD_SUBMIT_RESP, sequenceId);
    }

    public String getFrom()
    {
        return from;
    }

    public void setFrom(String from)
    {
        this.from = from;
    }

    public String getTo()
    {
        return to;
    }

    public void setTo(String to)
    {
        this.to = to;
    }

    public String getContent()
    {
        return content;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public String getServiceCode()
    {
        return serviceCode;
    }

    public void setServiceCode(String serviceCode)
    {
        this.serviceCode = serviceCode;
    }

    @Override
    public boolean isDataRequest()
    {
        return true;
    }

    @Override
    public <Response extends SmsResponse> Response createResponse()
    {
        return (Response) new SubmitResp(getIntSequenceId());
    }
}
